@mixin animateIt{
  -webkit-transition: all .25s ease;
  -moz-transition: all .25s ease;
  -o-transition: all .25s ease;
  transition: all .25s ease;
}

@mixin absoluteCenter{
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
}

@mixin button($bgcolor, $color){
  display: inline-block;
  text-decoration: none;
  width: 26.1rem;
  height: 7rem;
  position: relative;
  background-color: $bgcolor;
  color: $color;
  outline: none !important;
  font-size: 1.8rem;
  font-weight: 600 !important;
  border: 2px solid $bgcolor;
  border-radius: 83px 83px 83px 83px;
  -moz-border-radius: 83px 83px 83px 83px;
  -webkit-border-radius: 83px 83px 83px 83px;
  @include animateIt;
  span{ @include absoluteCenter; white-space: nowrap;}
  &:hover{
    background-color: $color;
    color: $bgcolor;
  }
}

@mixin textHoverLine($bgcolor, $padding){
  position: relative;
  &::before{
    content: "";
    display: block;
    width: 0;
    height: .15rem;
    background-color: $bgcolor;
    position: absolute;
    top: 100%;
    left: 50%;
    -webkit-transform: translateX(-50%, 0);
    transform: translate(-50%, 0);
    @include animateIt;
  }
  &:hover::before{
    width: calc(100% - #{$padding*2});
  }
}

@mixin floatfix{
  &::after{
    display: table;
    clear: both;
  }
}

@mixin line-anim-mixin($path-number, $offset){
  @keyframes line-anim-#{$path-number} {
    0% { stroke-dashoffset: $offset; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: $offset; }
  }
}